﻿/// <summary>
/// User class
/// </summary>
public class User{

    private string username;
    private int privilege;
	
    /* User constructor
    ===================*/
    
    public User(int id){
        //
		//Retrieve user from database by ID
        //

        this.username = "Username"; // from database
        this.privilege = 3; //from database
	}
    
    /* getUserName()
    =================*/
    
    public string GetUsername(){
        return username;
    }

    /* Check user privilege
    =======================*/

    public bool IsPrivilege(int level){
        return level > privilege;
    }

}